{load_language_text section="withdrawal"} {load_language_text section="account" name="account_txt"} {load_language_text section="buttons" name="button"} {block name="withdrawal_web_form"} {if $content_data.success} {block name="withdrawal_web_form_success"}

{$txt.withdrawal}{if $content_data.order && $content_data.order->info.date_purchased} ({$txt.your_order_from} {$content_data.order->info.date_purchased|date_format:$smarty.const.DATE_FORMAT_SHORT}){/if}

{include file="get_usermod:{$tpl_path}alert_message.html" message=$txt.send_withdrawal_success type="success"} {/block} {else} {block name="withdrawal_web_form_form"}
{block name="withdrawal_web_form_title"}

{$txt.withdrawal}{if $content_data.order && $content_data.order->info.date_purchased} ({$txt.your_order_from} {$content_data.order->info.date_purchased|date_format:$smarty.const.DATE_FORMAT_SHORT}){/if}

{/block} {block name="withdrawal_web_form_alert"} {include file="get_usermod:{$tpl_path}alert_message.html" message=$txt.webform_info type="info"} {/block} {block name="withdrawal_web_form_trader"}

{$txt.to}

{$smarty.const.COMPANY_NAME}
{$smarty.const.TRADER_FIRSTNAME} {$smarty.const.TRADER_NAME}
{$smarty.const.TRADER_STREET} {$smarty.const.TRADER_STREET_NUMBER}
{$smarty.const.TRADER_ZIPCODE} {$smarty.const.TRADER_LOCATION}
{$smarty.const.STORE_COUNTRY_NAME}

{if $smarty.const.TRADER_FAX != ''} {$txt.fax}: {$smarty.const.TRADER_FAX}
{/if} {if $smarty.const.STORE_OWNER_EMAIL_ADDRESS != ''} {$txt.mail}: {$smarty.const.STORE_OWNER_EMAIL_ADDRESS} {/if}

{/block} {block name="withdrawal_web_form_orders_display"} {if isset($content_data.order_list_for_display) && $content_data.order_list_for_display|@count > 0}
{block name="withdrawal_web_form_orders_display_title"} {$account_txt.title_orders} {/block} {foreach from=$content_data.order_list_for_display item=order_row} {/foreach}
  {$account_txt.text_date|replace:":":""} {$account_txt.order_nr|replace:":":""} {$account_txt.order_status|replace:":":""} {$account_txt.order_total|replace:":":""}  
{if $order_row.ORDER_PICK_URL} {/if} {$button.show}
{if $content_data.order_list_has_more}
{/if}
{/if} {/block} {block name="withdrawal_web_form_order"}
{block name="withdrawal_web_form_order_title"} {$txt.withdrawal} {/block} {block name="withdrawal_web_form_order_number_input"}
info.orders_id}{$content_data.order->info.orders_id|escape:'html'}{/if}" /> {if $content_data.errors.order_number} {$txt.input_error} {/if}
{/block}
{/block} {block name="withdrawal_web_form_personal"}
{block name="withdrawal_web_form_personal_legend"} {$txt.first_last_name} {/block} {block name="withdrawal_web_form_personal_firstname"}
{block name="withdrawal_web_form_personal_firstname_label"} {/block} {block name="withdrawal_web_form_personal_firstname_container"}
{block name="withdrawal_web_form_personal_firstname_input"} customer.firstname|escape:'html'}{/if}" /> {if $content_data.errors.customer_firstname} {$txt.input_error} {/if} {/block}
{/block}
{/block} {block name="withdrawal_web_form_personal_lastname"}
{block name="withdrawal_web_form_personal_lastname_label"} {/block} {block name="withdrawal_web_form_personal_lastname_container"}
{block name="withdrawal_web_form_personal_lastname_input"} customer.lastname|escape:'html'}{/if}" /> {if $content_data.errors.customer_lastname} {$txt.input_error} {/if} {/block}
{/block}
{/block}
{/block} {block name="withdrawal_web_form_email"}
{block name="withdrawal_web_form_email_legend"} {$txt.electronic_communication} {/block} {block name="withdrawal_web_form_email_email"}
{block name="withdrawal_web_form_email_email_label"} {/block} {block name="withdrawal_web_form_email_email_container"}
{block name="withdrawal_web_form_email_email_input"} customer.email_address|escape:'html'}{/if}" /> {/block} {if $content_data.errors.customer_email} {block name="withdrawal_web_form_email_email_error"} {$txt.input_error} {/block} {/if}
{/block}
{/block}
{/block} {block name="withdrawal_web_form_privacy_if"} {if $content_data.show_privacy} {block name="withdrawal_web_form_privacy"}
{block name="withdrawal_web_form_privacy_legend"} {$txt.title_privacy} {/block} {if $content_data.show_privacy_checkbox} {block name="withdrawal_web_form_privacy_checkbox"} {/block} {else} {block name="withdrawal_web_form_privacy_link"} {$content_data.privacy_link} {/block} {/if} {if $content_data.errors.privacy_accepted} {block name="withdrawal_web_form_withdrawal_privacy_error"} {$txt.privacy_error} {/block} {/if}
{/block} {/if} {/block} {block name="withdrawal_web_form_buttons"}
{block name="withdrawal_web_form_buttons_empty"}   {/block}
{* ADD FAKE INPUT FIELD FOR ANTI SPAM BOT MECHANISM *} {block name="withdrawal_web_form_buttons_submit"} {/block}
{/block} {block name="withdrawal_web_form_mandatory"}

{$txt.mandatory_fields}

{/block} {block name="withdrawal_web_form_validation_script"} {/block}
{/block} {/if} {/block}